import { createPersistedState } from 'pinia-plugin-persistedstate'
import baseConfig from '@/config/base-config'
import { createPinia } from 'pinia'
import useCertStore from './modules/cert'

const pinia = createPinia()
pinia.use(
  createPersistedState({
    key: (id: string) => `${baseConfig.LOCAL_STORAGE_PREFIX}${id}`
  })
)
export { useCertStore }
export default pinia
